<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head></h:head>
<h:body>

	<h:form prependId="false">
		<p:toolbar id="menuPrincipal1" style="width:100%;height:60px">

			<p:toolbarGroup align="left">
				<h:panelGrid columns="2">
					<p:commandLink action="/index.jsf?faces-redirect=true">
						<p:graphicImage value="/imagens/hospital.png" height="50px"
							width="50px" onmouseover="style.cursor='pointer'"></p:graphicImage>
					</p:commandLink>

					<p:outputLabel value="Jvet - Clínica Veterinária"
						style="font-style: italic;font-size:18px"></p:outputLabel>
				</h:panelGrid>
			</p:toolbarGroup>

			<p:toolbarGroup align="right">

				<h:panelGrid columns="5" cellspacing="5">

					<h:panelGrid columns="2">
						<p:commandLink id="btnLogout" title="Logout"
							action="#{loginMB.logout}">
							<p:graphicImage value="/imagens/sair.png" height="18px"
								width="18px" onmouseover="style.cursor='pointer'"></p:graphicImage>
						</p:commandLink>
						<p:outputLabel value="Logout"></p:outputLabel>
					</h:panelGrid>

					<p:outputLabel value="Usuário: " rendered="#{loginMB.logado}" />

					<p:outputLabel value="#{loginMB.login}"
						rendered="#{loginMB.logado}" />
				</h:panelGrid>
			</p:toolbarGroup>
		</p:toolbar>
	</h:form>

	<p:spacer height="10" />

</h:body>

</html>

